/*  ------------------------------------------------------------------------  */
/*  Paper        : Does Stakeholder Outrage Determine Executive Pay?          */
/*  Program      : a00-10-environment.do                                      */
/*  Description  : Setting environmental variables                            */
/*  ------------------------------------------------------------------------  */

/*  ------------------------------------------------------------------------  */
cls
clear *
macro drop _all
set more off, permanently
set maxvar 32767, permanently
set matsize 11000, permanently
set more off, permanently
set max_memory .

/*  ------------------------------------------------------------------------  */
//  Project-specific packages (only need installing once per machine)

ssc install psmatch2
ssc install estout
ssc install reghdfe
ssc install ftools
ssc install winsor2
ssc install sicff, replace

/*  ------------------------------------------------------------------------  */
//  Set machine-specific environmental variables

di "Computer hostname is  " c(hostname)

if inlist(c(hostname),"  ") {
    global dropbox "  "
	global datapath	"$dropbox/  "
	global temp112 "$dropbox/  "
}


global lpath	"$dropbox/  "
global tables	"$dropbox/  "
global tabRCFS	"$lpath/  "


global boardex "$datapath/boardex/20230209/na"
global crsp "$datapath/crsp/20230209"
global comp "$datapath/comp/20230209"
global exec "$datapath/comp/20230503"
global ff "$datapath/ff/20230209"
global iss "$datapath/riskmetrics/20230209"
global layline "$datapath/layline"
global lhr "$datapath/layline"

/*  ------------------------------------------------------------------------  */
//  Show environmental variables

#delimit ;
di
"-----------------------" _newline
"datapath      :  $datapath" _newline
"lpath         :  $lpath"_newline
"tables        :  $tables" _newline
"RCFS tables   :  $tabRCFS" _newline
"datapath      :  $datapath" _newline
"temp          :  $temp112" _newline
"-----------------------" 
; #delimit cr

/*  -|----------------------------------------------------------------------  */
/*  ||  ---    Program end: a00-10-environment.do                             */
/*  -|  ---    Attila Balogh    --------------------------------------------  */